﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SecureCookie.Implementation.Protocol
{
    /// <summary>
    /// All possible validation results after validation a (secured) cookie
    /// </summary>
    public enum ValidationResult
    {
        /// <summary>
        /// The validation is successfull
        /// </summary>
        Valid,
        /// <summary>
        /// The validation failed, because the cookie is expired
        /// </summary>
        InvalidIsExpired,
        /// <summary>
        /// The validation failed, because the cookie contains an invalid validation hash, possible tampering of data or the client unique value changed (possible replay attack)
        /// </summary>
        InvalidHashingCode,
        /// <summary>
        /// The given cookie doesn't contain all the required data for being consided a secured cookie
        /// </summary>
        InvalidIsNotSecured,
        /// <summary>
        /// There is an invalid value in one or more values from the secured cookie
        /// </summary>
        InvalidUnexpectedValues
    }
}
